<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	exclude-result-prefixes="xs xsi">

  <xsl:template match="PatientContact">
    <div class="boxed-section" id="{local-name()}">
      <h2>Contact</h2>

      <label>Name</label>
      <span><xsl:value-of select="name"/></span>

      <br />

      <label>Relationship</label>
      <span><xsl:value-of select="relationship"/></span>

      <br />

      <label>Contact Type</label>
      <span><xsl:value-of select="type"/></span>

      <br />

      <label>Address</label>
      <span><xsl:value-of select="address"/></span>

      <br />

      <label>Telephone number</label>
      <span>
        <xsl:value-of select="telephone"/>
      </span>

      <br />

      <label>Mobile number</label>
      <span>
        <xsl:value-of select="mobile"/>
      </span>

      <br />

      <label>Aware of admission</label>
      <span>
        <xsl:value-of select="aware"/>
      </span>

      <br />

      <label>Date informed</label>
      <span>
        <xsl:call-template name="standard_date">
          <xsl:with-param name="date" select="date-informed"/>
        </xsl:call-template>
      </span>

      <br />

      <label>Inform at night</label>
      <span>
        <xsl:value-of select="inform-night"/>
      </span>

      <br />

      <label>Patient nominated contacts</label>
      <span>
        <xsl:value-of select="patient-nominated-contacts"/>
      </span>

      <br />
      
    
    </div>
  </xsl:template>

</xsl:stylesheet>
